package com.handu.luna.core.domain.admin;

import javax.persistence.Entity;
import javax.persistence.Transient;

import com.handu.luna.core.domain.BasePersistentDomain;

@Entity
public class Operator extends BasePersistentDomain<OperatorRepository>{
	
	@Transient private Role role;
	private String loginName;
	private String password;
	private String name;
	
	public Operator(){}
	
	public Operator(String loginName, String password, String name) {
		super();
		this.loginName = loginName;
		this.password = password;
		this.name = name;
	}
	
	public void logon(){
		
	}
	public void checkPermission(AdminControllerDescription action){
		
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
